// 用于创建model对象
const mongoose = require('mongoose')
const schema = require('./schema')
const model = mongoose.model('goods', schema)

// model要在express的路由的回调中使用,所以要提前暴露出去
module.exports = model
